set(SRC_LIST "")
aux_source_directory(. SRC_LIST)
# 添加源文件到目标
target_sources(${CMAKE_PROJECT_NAME} PRIVATE ${SRC_LIST})
# 添加头文件到搜索路径
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory(BSP)
add_subdirectory(SYS)
add_subdirectory(app)

# target_sources(${CMAKE_PROJECT_NAME} PRIVATE SYS/segger/HardFaultHandler.S)